
import lejos.nxt.comm.LCPBTResponder;
import lejos.robotics.subsumption.Arbitrator;
import lejos.robotics.subsumption.Behavior;

public class CleverRobot {
	public static void main(String[] args) {
		
		Behavior movingForward = new MoveForward();
		Behavior hitWall = new HitWall();
		Behavior followWall = new FollowWall();
		Behavior moveAwayFromWall = new MoveAwayFromWall();
		Behavior lostWall = new LostWall();
		Behavior[] allBehaviors = {movingForward,lostWall, followWall, moveAwayFromWall, hitWall};
		
		Arbitrator actionSelector = new Arbitrator(allBehaviors);
		actionSelector.start();
		
	}
}
